<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录即可做任务</title>
    <link rel="stylesheet" type="text/css" href="public/css/index.css">
    <script src="public/sweealert/sweetalert.min.js"></script>
    <script src="public/js/jquery-1.8.0.js"></script>
    <link rel="stylesheet" href="public/sweealert/sweetalert.css">
</head>
<body>
<div class="zhe"><!--遮罩层-->
    <div class="warb"><!--外层-->
        <div class="top-bg">
            <form id="reformbg">
                <input class="textinput" type="text" name="username" placeholder="用户名(数字，字母，下划线)" id="reuser"/>
                <input class="textinput" type="password" name="password" placeholder="密码" id="repwd"/>
                <input class="textinput" type="password" placeholder="确认密码" id="repwdtoo"/>
                <a href="javascript:resub()" class="rebtn">注册</a>
                <a href="index.html" class="lo">登录</a>
            </form>
        </div>
    </div>
</div>
</body>
</html>
<script>
   function resub() {
       var reuser=$("#reuser").val();
       var repwd=$("#repwd").val();
       var repwdonce=$("#repwdtoo").val();
       if(reuser==""){
           swal("No", "请输入注册名!", "error");
       }else if(repwd==""){
           swal("No", "请输入密码!", "error");
       }else if(repwdonce==""){
           swal("No", "请再次输入密码!", "error");
       }else if(repwdonce!=repwd){
           swal("No", "密码不一致!", "error");
       }else{
         $.ajax();
       }
   }
</script>
